package com.vdong.common.oauth.common.authorize;

import com.vdong.kpay.basics.dubbo.result.APIResult;
import com.vdong.kpay.basics.dubbo.result.ResultCodeEnum;

/**
 * @author 刀锋
 * @date : Create in 12:29 2018/6/25
 * @description:
 */
public class AuthCommon {
    public static final String SSO_CREDENTIALS = "N/A";
    public interface User{
        /**
         * SAAS 用户
         */
        int SAAS_USER = 10;
        /**
         * 店铺管理用户
         */
        int STORE_USER = 20;
    }

    public static APIResult FAIL_AUTH_RESULT = new APIResult(ResultCodeEnum.FAIL_AUTH);

    public static APIResult FAIL_AUTH_PASSWORD_ERROR_RESULT = new APIResult(ResultCodeEnum.FAIL_AUTH_PASSWORD_ERROR);

    public static APIResult SUCCESS_AUTH_RESULT = new APIResult(true);

}
